package com.paraview.model.base.system;

import com.paraview.model.base.BaseModel;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@Accessors(chain = true)
public class Menu extends BaseModel {
    public final String MENU_TYPE_BTN="btn";
    public final String MENU_TYPE_VIEW="view";
    public final String MENU_TYPE_PARENT="parent";
    /**
     * 菜单名
     */
    @Size(max=255,message = "名字不能多于255个字符")
    @NotBlank
    private String name;
    @NotNull
    private Integer sort;
    /**
     * 菜单类型，btn or view
     */
    private String menuType;
}
